package com.hjn.spring.aop.afterreturning.service.impl;

import com.hjn.spring.aop.afterreturning.pojo.Student;
import com.hjn.spring.aop.afterreturning.service.StudentServicve;
import org.springframework.stereotype.Component;

@Component("studentService")
public class StudentServicveImpl implements StudentServicve {
  @Override
  public void doSomeThing(String name, String age) {
    System.out.println("doSomeThing ======= 测试没有返回值的方法");
  }

  @Override
  public String doAdd(Student student) {
    System.out.println("doAdd ===== 有参");
    return "doAdd";
  }

  @Override
  public String doStr(String name, String age) {
    System.out.println("doStr ===== 有参");
    return "doStr";
  }

  @Override
  public Student doSaveStudent(Student student) {
    System.out.println("doSaveStudent============");
    System.out.println(student);
    return student;
  }
}
